package cn.jiaqiang.chatgpt.data.types.common;

import lombok.Data;

/**
 * redis 通用键值
 */
@Data
public class RedisConstants {
    /** 统一分隔符 */
    public static final String SEPARATOR = ":";
    /** 白名单前缀 */
    public static final String OPENAI_WHITE_LIST_PREFIX = "openAI" + SEPARATOR + "whiteList";
    /** 每日用户访问次数的前缀 */
    public static final String OPENAI_COUNT_PREFIX = "openAI";
    /** 每日用户访问次数的前缀相关的时间格式 */
    public static final String OPENAI_COUNT_TIME_PATTERN = "yyyy:MM:dd";
    /** 校验码前缀 */
    public static final String OPENAI_CODE_PREFIX = "openAI" + SEPARATOR + "Code";
    /** 校验码有效期 */
    public static final Long OPENAI_CODE_EXPIRED = 3L;

    /** 消息队列的队列名 */
    public static final String PAY_SUCCESS_QUEUE_NAME = "k_pay_success";
    /** 消息队列的消费者组 */
    public static final String PAY_SUCCESS_CONSUMER_GROUP = "g_openai";
    /** 消息队列的消费者 */
    public static final String PAY_SUCCESS_CONSUMER_01 = "c_consumer1";
    /** 订单存入redis 的键值 */
    public static final String PAY_SUCCESS_ORDER_ID_KEY = "orderId";
 // openAI:userWhiteList
    public static final String USER_WHITE_LIST_PREFIX = "openAI" + SEPARATOR + "userWhiteList";
}
